<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" import="java.util.*" import="javax.servlet.jsp.jstl.core"%>
<%--<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>--%>
<!DOCTYPE html>
<html>
<head>
    <title>显示登录的用户信息</title>
</head>
<body>
<br/>
<center>
    <h3>欢迎光临</h3>
</center>
<br><br>
<c:choose>
    <c:when test="${empty sessionScope.username}">
        <a href="${pageContext.request.contextPath}/login.jsp">用户登录</a>
    </c:when>
    <c:otherwise>
        欢迎你，${sessionScope.username}
        <a href="${pageContext.request.contextPath}/LogoutServlet">注销</a>
    </c:otherwise>
</c:choose>
<hr>
<a href="/MyServlet">MyServlet</a><br>
<a href="/MyFilter">MyFilter</a><br>
<a href="/login.jsp">login</a><br>
</body>
</html>